Use signed int for loops (removing warnings)
Output closest point coordinates to standard out