Minimax Nonparametric Two-sample Test