Hierarchical Variational Imitation Learning of Control Programs