Changed Max/MinIntIndex to return the latest index seen (as opposed to the first as it was)