exporting bst function in a module