Variational Monte-Carlo code