Rehabilitation of spinal deformity