added min_max + unit test and doc