C implementation of Vipul's Razor