Added kata dogSort