Created own functions for filter, map and reduce. Created recursive versions of filter, map and reduce.