implementation of majority
adding getdata operation
pieceOfData correction : tag and value are exposed
removing unused code
removing uneeded imports