Moved merge recursive array function to proper class.