Repetition Vector calculation using SDF3 script