updated and started merge sorting