fixed reduce and max_element and min_element for MS VC++ amp size issue