public Boolean singleRotation(privAVLNode r,int dir)
		{
			//Check valid inputs
			if(!(dir == 1 || dir == 0))
				return false;
			if(r == null)
				return false;
			privAVLNode save = r.getChild(dir);
			if(save == null)
				return false;

			//Preform rotation
			save.setParent(r.getParent());
			if(save.getChild((dir+1)%2) != null)
				save.getChild((dir+1)%2).setParent(r);
			else
				r.removeChild(dir);
			r.setParent(save);

			//Re-check height
			r.setHeight();

			//Reassign root
			if(root == r)
				root = save;
			return true;
		}