maximum sub array
memcpy algorithm. Difficult in backwoard copy