Add algorithm library of princeton uni