So they were the rule in how to liove for God for those such as Abraham and Moses and David, but not for us?Jesus says the Ten hang from them. So, they precede the Ten and we must not assume an artificial chronology based book order.
The decalogue was for wicked people who could not love God or others. They were good for the wrong reasons. The Two Great Commandments were the rule for the born again like Abraham. You did not need to tell him not to steal.
Which Laws did Jesus fulfill on the cross?