modified speed on noise, added optical flow class template