Haskell: moved lfsort function to new file.