Some classic algorithm implement in C