Added mergeToTwoChunks and splitIntoTwoChunks