The librarian shall, under the direction of the judges of the supreme court, purchase such books as they may require, and place the same in the law library; and under the direction of such judges, he may sell or exchange any surplus or duplicate law books or reports.