Exact fast computation of optimal filter in Gaussian switching linear systems