add binary three and linear list