Starts implementation
continues implementation. Todo: optimization
Finishes colorOccurrences implementation