The most famous algorithms in java