Alphabet shares surge after beating on both top and bottom line