Graph-Memoized Reasoning: Foundations Structured Workflow Reuse in Intelligent Systems