An intelligent cross correlator for pipeline flow velocity measurement