* Refactored the join function for more complex cases,
 namely for it to work with multiple variables
 
* added function to print variable mappings in AM

* Added function to print BM

* took sel_arg function outside join function scope
* Added test 9 to test more complex join function

* refactored the code to include print_bm and print_mappings functions