add more tests
skip argpartition in test_defmatrix too
fix median with axis argument
use min/argmin to get smallest element in remaining partition