Classification of Three-way Proximity Data