partialDist: Partial distance matrix (focus on closest)
Description
partialDist calculates distance matrix like dist for 1- or 2-dim data, but only partially, ie only cases of small distances.
This function was made for treating very large data-sets where only very close distances to a given point need to be found,
it allows to overcome memory-problems with larger data (and faster execution with > 50 rows of 'dat').