Matrix calculator written in C (University project)