add equation parser and tests
add getOrder function for equation parser