various programming algorithms in java