Finding Shortest and Longest