I am writing some CShapr code here for some basic algorithms.