Applying SPEA2 to prototype selection for nearest neighbor classification