where was the flip-flop invented?