changed output format to use the base 2 logarithm for the cost parameter