ApplyThresholdComparable: add javadoc
Add ApplyThreshold implementation using Comparator
WIP: It works