An Adjusted Nearest Neighbor Algorithm Maximizing the F-Measure from Imbalanced Data