Legal expert systems: the problem of precedent