System and method of adaptive distribution of autonomous driving computations