add algorithms of practicum 3 (nearestneighbour and double-tree)