Finished the 3rd algorithm which takes a character set, finds the luminance of each character, sorts and removes duplicates, and outputs the greyscale image. Also fixed bugs in other parts.