Various Algorithms and Its implementation in C and C Plus