FEATURE: nearest point optimization had been made.
FEATURE: nearest point optimization had been made.
BUGFIX: fixed minor bugs