Added isDominant() function
Added isDominant() function