function сomparison(newPoints, oldPoints)
{
if(newPoints.length > oldPoints.length){
for(let i = 0; i < oldPoints.length; i++){
if(oldPoints[i] != newPoints[i])
console.log('change ', oldPoints[i], ' to ', newPoints[i]);
}
for(let i = oldPoints.length; i < newPoints.length; i++)
{
console.log('create', newPoints[i])
}
} else {
for(let i = 0; i < newPoints.length; i++){
if(oldPoints[i] != newPoints[i])
console.log('change ', oldPoints[i], ' to ', newPoints[i]);
}
for(let i = newPoints.length; i < oldPoints.length; i++)
{
console.log('delete', oldPoints[i])
}
}
}