A tool for choosing optimal variable-size features in classification problems