Probabilistic mapping of dynamic obstacles using Markov chains for replanning in dynamic environments