Nonparametric feature extraction based on Minimax distance