added reduce and filter method for collection, ref #90