Added first cut version of JNI/native version of waterFilter