Java implementation of algorithms from 彭苑