Code files for the Ramah Leveling Problem