Bose–Einstein condensate array in a malleable optical trap formed in a traveling wave cavity