Ridgefield High School ranks fourth in state