Create algo_functions.R

Required functions for computations of topology, significance