Added summarize function, started optimizing MapColorSize function