Text this: The construction of balanced bounding-volume hierarchies using spatial object median splitting method for collision detection