Syncing with upstream: bedatadriven/master
Syncing with upstream: bedatadriven/master
Fixed sorting bug that arose from translating sort.c's memory pointers to Java array indices
Updated directions for OS X in BUILDING.md. JAVA_HOME should be set to Java 1.7's home, as 1.8 will cause a "could not load class file" exception.
Merge pull request #92 from acaloiaro/master

Fixes an edge case that can lead to different sample() values between Renjin and GNU R