modified PACKAGE map_reduce_type

modified PACKAGE map_reduce_type, added a REF CURSOR