optic flow algorithm added