build on windows (mostly)
most of the unit tests build in visual studio 13.
new distance formula provides a nearly 3x speedup under some conditions, but fails a few unit tests.