public ArrayList<ArrayList<String>> makeGroup(ArrayList<String> input)
    {
    	ArrayList<ArrayList<String>> output= new ArrayList<ArrayList<String>>();
    	int i=0;
    	while(i<input.size())
    	{
    		Character currentFirst=input.get(i).charAt(0);
    		ArrayList<String> currentGroup = new ArrayList<String>();
    		while(i<input.size() && input.get(i).charAt(0)==currentFirst)
    		{
    			currentGroup.add(input.get(i));
    			i++;
    		}
    		output.add(currentGroup);
    	}
    	return output;
    }