initialize dimensions of expression shapes

E.g.

X = MatrixSymbol('X', 2*n, 2*m)

When we try to define the size of n from the input we need a line like

n = size(X, 1) / 2

We accomplish this through SymPy's ``solve`` routine