Header file algorithms.hpp