Sun reorganizes, cuts up to 18 percent of workforce