Jordan Thompson has beaten Jo-Wilfried Tsonga to advance to the last 64 of the Miami Open.