perform_nni function

Maximum likelihood tree search via NNI