haskell - use less naive algorithm for pascals triangle