Removed 'group' function, updated rotl and rotr to work for empty vectors