Added new algorithm at end comments for review