THE communities of Great Neck and Pelham in New York ; Fairfield , Conn. ; and Glen Ridge , N.J. , have several things in common : first-rate public schools , stately homes on tree-lined streets and municipal amenities like well-groomed parks and fine libraries .