Fixed logic error in querymath
Length method for linked list class
Added empty while loops for math