add algo for adding bit slices