Format sections. Add in length squared. Make distance function more readable and remove multiple calls to same fns
Rewrite codebase to use generic classes that rely on the same methods (more DRY)