Writing solutions to Ax=b in vector form