Implemented few Algorithms in C