Apple and Samsung finally settle their patent dispute