added inverse operator
added sub operator
cast and transpose functions added
extended transpose and sub functions, bugfix