Learning 'Introduce algorithm'. Implementation by Java/Scheme/