edited main.cpp
-- added iteratedGreedy function