initial add hamming sum mult and lib