Microsoft beats on top and bottom lines for third quarter earnings