The Liberty Algorithm