Top Indian judge blames British rule for discriminatory practices in prisons