Cellular-automata based optical flow computation for "just-in-time" applications