Using close encounters of minor planets for the improvement of their masses