Question: Given n number of points in space and a point P, find 3 nearest point to p.

Solution: You are intelligent enough to do it yourself.