Haskell Insert Into List, For the second problem, you can use the Data.