Added new operation inside counting_bits
Uploaded changes from merge. Added pop function and c++11 compatibily. Pending on testing