replace tribe format with mat

use popular mat format which is compressed, fast, and easily extended,
remove old proprietary tribe format