An Ensemble-Driven k-NN Approach to Ill-Posed Classification Problems