elementary basis transformation