trouble with errors in extraneous files

Hi,
I am trying to implement a non_recursive version (bottom-up) of mergeSort. When I compile my code, however, my x-code brings up numerous errors that have to do with some files that I did not think I was messing with (stl_algo.h, and stl_algobase.h, and stl_iterator_base_types.h) -I will attach a picture of the list of errors.
This is my code for the non_recursive mergeSort

I tried putting the #includes in the h file underneath the #define...but no luck. The first two errors are :
Line Location stl_algo.h:2991: error: no match for 'operator*' in '*__first1'
Line Location stl_algo.h:2991: error: no match for 'operator*' in '*__first1'