[Haskell-cafe] ANN: A Functional Implementation of the Garsia-Wachs Algorithm