Added GPU support to opticalflow.