changed flow to be a vector of Mat objects to hold x and y components, cpu flow Mat also is split into x and y Mat objects-a