Added the main part of the imperative nature merge sort