An implement of The Algorithms 4th