implement Array#min and Array#max + specs