Well he was definitely looking hard for something to give you a ticket for. I do get annoyed with people that run down turning lanes, then cut back in traffic to pass a few cars. I don't see a problem with what you did though, as long as you didn't hit someone.