Storing and Indexing Plan Derivations through Explanation-based Analysis of Retrieval Failures