unsafe version of max, min routines added
applied CLSCompliant as false