Added algorithm commentss