#29 adding part of merge mechanism for genetic search