Finished first draft of JNI bridge for Comparator and Slice
Refactored to simplify code