add solution for merge sorted array