Code used for sMRI_Longitudinal_Atlas_Building