Operand sharing

First working attempt at task 3.
Optimization by using operand sharing.
Re-arranged gt, lt and equalty comparison

Improves the LUT count sligthly