added BoundingBox calculation and a little test in Main.hx