Library catalog simulator using a binary search tree implementation