Create RankMapper.java

This class contains the logic for mapper for finding the main rank of an iteration.