VLSI architecture for motion estimation in underwater imaging