A simple implementation of merge sort, and it is used to sort color in right order