changed the main class name to fit the requirement and implemented the error diffusion to median cut algorithm including fix the median cut algorithm bugs; close #6