Changed get_volume to take a list of pre sorted block index.