implement protocol for element min and max
use latest vectorz
implement index selection protocols