To find the five smallest values, sort the array in ascending order, e.g. via QuickSort, and use indexes 0-4 to retrieve the five smallest values.
_________________________
There are two types of vessels, submarines and targets.