faster max and min for float arrays