basic space partitioning and collision detection with a single partition