change node->data to long[], fix operator order in calc()
remove debug output and superfluous comments. order operands the right way
simplify prec(), add bound checks and add modulo operator