Modification of the sub method

Now it works. Next step is still the scalar multiplication.