Remove some console.log for debugging.
Test cases for the length function are added.
Some functions for equations are updated for array value.