Add a get_segments method to Track