refactor cramer method