On the Complexity of Case-Based Planning