Equal Protection Under Algorithms: A New Statistical and Legal Framework