Common elements in 3 sorted array