implemented 1D array rep

Many, many issues created. Matrix inverse & multiplication is not
accurate in any way.