Added implementation of `map` using `foldr`
Cleanup