An Optimal Block Replacement Policy Using Items with Different Reliability