Remove reduce, introduce foldl, foldr instead. closes #6