add read/write bin file, powmod