Added implementation for minor, identity, zero and square

Minor is buggy