Elucidating the multiple genetic lineages using SNP data in livestock