load and save binary PINA and TF matrices