Optimize Search Algorithm to find Most dense part in rhythm game map. - C#