Added algorithm.h