added merg sort stuff