Grid Coding: A Preprocessing Technique for Robot and Machine Vision