[Haskell-beginners] library for lattice data structure