Indexing in Nearest Neighbor classifier fixed. Thanks to Marius Rabenarivo for reporting.