Some useful and challenging algorithm implemented using java for most and some using C++