Find mid using The Tortoise and The Hare approach
function findMid ( head ) { var slow = head , fast = head . next ; while ( fast != null && fast . next != null ) { slow = slow . next ; fast = fast . next . next ; } return slow ; }