added caching for border elements of degLexMonomials