A fast algorithm for errors-in-variables filtering