Representing teleological structure in case-based legal reasoning: the missing link