array merging algorithm
splice implementation
removed sort() since it wasn't mergeable