Further implementation of Min()/Max() -- still fails tests.