Closest implementation, with relevant update to demo page and initial test.
remove closestHeuristic
remove superfluous code from closest
function formatting
slightly better tests for closest option