Hierarchical Segmentation of Vertebrae from X-ray Images