CTCI 11.1 merge two sorting arrays