get array max||min