When was the sub machine gun invented?

@1915