Implemented basic partitioning.
Switched to using -Ounchecked for optimization.
Optimization for spatial partition.
Merge pull request #73 from thelukester92/spatial-partitioning

Implement spatial partitioning