Instance class added

Contains random Q matrix generator using 4-dimensional array