Renamed skew functions to be more meaningful.
Added the Java reference implementation.