Bet Smart: The Kelly System for Gambling and Investing