Finished basic BBox implementation (there may be bugs)