Fallback for older boost version running on Travis-CI and other systems
Merge pull request #25 from spotify/boost-random-fix

Fallback for older boost version running on Travis-CI and other systems
Replacing an explicit loop with std::copy to solve #3 and #13

This seems to do the trick when I'm running it on an EC2 instance. Seems like GCC 4.8 goes too far optimizing redundant loops and removes the loop (that's the only explanation I can think of).
Merge pull request #24 from spotify/fix-3-13

Replacing an explicit loop with std::copy to solve #3 and #13
Attempting to fix another compiler optimization bug

This addresses #13 when compiled from R. It seems like R has some other flags when compiling that trigger the same bug in _get_all_nns and that it optimizes away two other loops. Removing the loops and using vector::insert resolves the issue
Merge pull request #26 from spotify/fix-13-again

Attempting to fix another compiler optimization bug