added two old (losing) algorithm codes