[Refactor] Add some peripheral code about merge sort. And refactored drawItems return value type.