bigint: implemented small object optimization