fixed incorrect calclations
started least common color substitution
renamed file
another version