move border initialization into swarm initialization now that each has a map, clean up sorting and resampling
added assertions to find pointer bug
fix bounds, elusive memory stomping still persists
various memory leak fixes, fixed bug in particle swap for sort