add init solution for merge sorted arrays.