Using cabal to build the project

Also renamed tsearch.hs to Main.hs
Splitting the code in modules
Using IntMap instead of Map on the index
Moving output print to a separate function