Their genes are what make dogs your best friends