A computationally efficient approximation to the nearest neighbor interchange metric