added isRed to the vertex struct