Algorithm explained, results added