Two-legged dinosaurs may have swung tails to run faster, say