Merton's portfolio problem