Online Causal Structure Learning in the Presence of Latent Variables