Update utilities.py

add "nearxy" function to replace the previous one(nearxy2).
because the previous one has mistake.
Merge pull request #3 from xhx509/patch-2

Update utilities.py