new implementation of bacterial movement in R