Moved the tensor part of the grammar code to a local directory. Removed it from the repository.