add patterns and algorithms folders