COMPUTATIONAL COMPLEXITY IN ONE- AND TWO- DIMENSIONAL TAPE AUTOMATA