The Internet retailing giant Amazon.com turned in one of its best quarters ever. Profits more than tripled, reflecting strong sales of books, music and electronics worldwide. Its shares skyrocketed $14.70, or 21 percent, to $83.95 in after-hours electronic trading.