Avoid the use of std:vector<PointWithDistance> due to Visual Studio 2010 and 2012 issues with SSE-aligning std::vector. Instead just allocate manually.