Rename algorithms to chuck.
Port mainPenrose to algorithms function.