make all unsigned ints actually unsigned
rename tensorContraction, fix tensor arrays