Implemented tensor arithmetics