Denied access to a library due to caste bias, he helped build one that changed his communitys future