Implement the fast nearest neighbor classifier based on SOINN.
(Shen Furao, Osamu Hasegawa, ..., Neural Networks, Vol. 21, 2008, pp.1537-1547)