Fixed bug in merge sort algoritm: Array index was cast as a float, allowing for array index values like 2.5