A Pattern Synthesis Technique with an Efficient Nearest Neighbor Classifier for Binary Pattern Recognition