a not that smart algorithm template library