added box_contains_point_2d and nd