Real-Time Parallel Implementation of A Phase-difference-based Algorithm for Disparity and Optical Flow Computation