add reduce and each slice
Merge pull request #2 from LyndseyWilliams/reduce_and_each_slice

add reduce and each slice