few frequently used algorithms