added basic sorts and tests