Implemented merge operation for processor