Algebra evaluator for HPS(Toy Problem)