MST working for colored trees