add java solution for linked list cycle