public BTPosition<T> getMax(BTPosition<T> root) {
		if (root == null)
			return null;
		BTPosition<T> current = root;
		while (current.getRight() != null) {
			current = current.getRight();
		}
		return current;
	}