From 1945 to 1984 , Dr. Kaplansky taught at the University of Chicago , where he joined his famous former teacher , Saunders Mac Lane , who worked on topology and category theory , an abstract branch of algebra with applications in computer science .