changes ruby min/max methods

Changed the ruby min/max methods to match what the descriptions 'finds the minimum/maximum value in the array myarray' described. The original example code from the stack overflow example was how to find the index of the element with the min or max value.