Various Algorithms implement in C++/C/Python/Java