Added debugg printf statements, found value of index 208 for merged array changed from 5048 to 0 for no apparent reason