Median matrices and their application to radar training data selection