Implement Push And Pop Algorithm Of Merge