Algorithms in Robert Sedgwick's book implemented in Go