Classification with Minimax Distance Measures