Implement an algorithm to merge two sorted arrays into a single, sorted array without using built-in sorting functions.