Uploaded BlockRank2.java (Implementation of Method 2)