Cellular Automaton Based Localized Algorithms for Mobile Sensor Networks