Speeds up find_nearest() with a similar implementation as proposed by @roelofvandijkO in arosics#98 (closed).
Closes arosics#98 (closed).