made num threads and array width command line arguments for easier use