Add some shorctuts

If sequences are equal or one is a prefix of the other one, then
the result is quite straightforward