OpticalFlow update II

Second version of optical flow. Still need improvements