finish gain function for boolean attribute dataset, add bash file(named build) to build executable file