A new approach to filtering and adaptive control