Partial sum implementation

Done. I should have read all your comments first. But coming to the solutions on my own made me think more about it. I guess the problem was that when I was reading the iterator_concepts I had a bit of trouble figuring out what I, O, V, T mean in which context. I also didn't think much about it so that didn't help either.