Ten important algorithms (C language implementation)