Simple Hardware Implementation of Motion Estimation Algorithms