(hopefully) improved optical flow performance on slow arm cpu's

all the tests should pass and the change is at the implementation level only