buaazp: update max_size(p=4) method for @fanrong33's demand in #5