Algorithms in MATLAB to reproduce article "Intrinsically Motivated Reinforcement Learning"