add write and read gmmhmm in binary form