Factory planning and plant layout