Best Buy beats Street, swings to Q3 profit