Optimal Allocation of Two-Dimensional Irregular Shapes Using Heuristic Search Methods