added selection sort in Haskell and Java