The getMin function

The getMin function is shown in its entirety in Listing 6.