complexity theory simple definition