added linklist length is even or odd check function