Working version of a Binary Tree

Main use: Given an array I create a tree and use it to find the nearest
point for a user provided point.