Refactor all operators into a map in order to ease extending

Needed for upcoming features and also preparation for #11.