Added BINS-lib.[cpp,py]