Three-way Compositional Data Analysis