A Grid Cell-Inspired Structured Vector Algebra for Cognitive Maps