changed hierarchy and fixed tensor product
added matrix-vector functions to numerics