Some operations written in C for matrices based on six different data structures