[Haskell] Principal variation search