Modified BST to include line numbers