implement parse/serialize ahp matrix