Bayesian adaptive filtering at linear cost