add is_unival method
add num_unival method