Other Algorithms solution added.