Tape Complexity of Word Problems