Added methods to find closest point on a bounding box

Signed-off-by: Martin Evans <martindevans@gmail.com>