Mathematical Flexibility: Aspects of a Continuum and the Role of Prior Knowledge