Added the function declaration in a new file for the algorithm.