Pixelsorting ported to Java and configurable.