Performance fix. Avoid extracting base matrices
Delete repated if
Add test for unit variable
Performance fixes
ones instead of repmat
Handle the case x.^-1*x
Clean spaces
Don't append normalizng variable if we wont use it
Don't look for inner derivatives if we only have monomials