Update partial information code

First version located in https://git.dynare.org/Yang/dynare

Edited by Houtan Bastani