Corrected Binary search by using parseInt.
Added constructor to Node.