A manpower allocation problem with layout considerations