Topic/operators

The remaining tests have succeeded, I'm quite confident now that this implementation is a good choice.
It would indeed be nice to have this. I'm a little unsure of how to use the templates though, so I'll have to do this later.