Remove several helper functions in favor of built-in functions

listfoldl -> reduce method
listfilter -> filter method
listmap -> forEach method
Replace listcontains with a simpler contains function