Added: RGB matrix class, maximin searching function, some little fixes