CLRS Implementation