Week 2 algorithms submitted