Heres the code for sorts and testing