Stopped using nested vectors for holding matrix