TVL1 optical flow implementation