changed dimension to NSUInteger so its aligned properly in struct
added HSKDTreeSpaceContainsPoint
updated findNodesWithMinDistance to allow leaf root nodes to be found