A programming package for the study of high angle grain boundaries by using TEM