Fixed bad pointer math and loop counting. Moved AVX sum calculation to functions.
Fixed bad pointer math and loop counting.
Moved AVX sum calculation to functions.

spotify/annoy,tjrileywisc/annoy,tjrileywisc/annoy,eddelbuettel/annoy,eddelbuettel/annoy,tjrileywisc/annoy,spotify/annoy,eddelbuettel/annoy,spotify/annoy,spotify/annoy,tjrileywisc/annoy,eddelbuettel/annoy