What is the meaning of "拜了个拜"？ I heard this phrase from some Chinese-speaking stranger. I assume it's related to farewell since the stranger was waving hand to someone else, but what does it mean exactly? Is there a certain context in which this phrase is used? 

Also, is this a dialect? It looks different from the Chinese I have learnt.
拜了个拜 derives from 拜拜 by treating the first 拜 as a verb and the second 拜 as the object of the first 拜 and then adopting the verb+(quantity)个+object pattern.

拜拜 is just a loan word from English bye-bye and mean the same thing.

拜了个拜 is just a novel usage of the word.