Added a helper function that I assume more than one algorithm will use called helper_functions.py: It needs to be commented.