reimplement some functions with 'foldr'

- and
- or
- map
- filter
use 'acc' instead of the more generic 'xs'
remove unnecessary parens in the def of 'take'
add my solution to CS4620's 2013-14 exam