code: void store(OutputStream out) throws IOException {
  
          BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(out));
  
          for (Entry<String, Point2d[]> e : templateMap.entries()) {
              bw.write(encodeEntry(e));
              bw.write('\n');
          }
  
          bw.close();
      }
docs: Store a template library to the provided output stream.
  
  @param out output stream
  @throws IOException low level IO error