Added code to fill holes: functions fillHolesNeighbors and
hasThreeSamePixels added