full description and justification of untrendy algorithm