Improvements to Nearest Neighbor Classifier: Pattern Synthesis, Compact Data Representation and other Schemes