An algorithm for estimating the generalized fundamental traffic variables from point measurements using initial conditions