who created the machine gun in ww1