4 bit mag comparator implemented and tested