The best and worst performing UK shares