Merge all operators to single function

Use Meta-programming to combine the operators into a single function.