min and max arrays, tighter mux read

This UNTESTED version tracks max and min values and polls all 48 mux
values in one for loop