CAPTAIN at COLIEE 2023: Efficient Methods for Legal Information Retrieval and Entailment Tasks