Remove max_rows from bq command line

I had to remove the max_rows parameter to the
bq command line. The version of bq that I am
using does not support that parameter.
Added query_ndt_unique_ip_max_average_with_min

Added function that does the "ultimate" calculation.