Nearest Neighbor Classification of Remote Sensing Images with Maximal Margin Principle