How long did it take to invent basketball?