Update algo_functions.R

changed library => require for required libraries