Code for the developmental robotics experiment on matrix reasoning