Design, Implementation, and Performance Evaluation of a Detection-Based Adaptive Block Replacement Scheme