Amazon beats quarterly sales estimates