If a is a nonzero integer and b is a positive number such that ab=log10b, what is the median of the set 0,1,a,b2,1/b?
0
1
a
b2
b1