design and implimentation of resource sorting algorithms for research library operation