thre sorts and a simple time checking program