added pseydocode for trace hull proximity optimization