Implemented filter, filterWithKey, mapMaybe, and mapMaybeWithKey