Trying to make the first part of the tabusearch algorithm