Retired Brooklyn judge elected chair of City Tech Foundation