added search for a range and sort
added another solution for search range
done