Learning latent state representation for speeding up exploration