COMP 3270 Introduction to Algorithms