Estimating Latent Variables and Jump Diffusion Models Using High Frequency Data