This is a library which calculates the rank by given data.