func NewPrimaryLayer(cmp1 PrimaryCmpFunc, cmp2 SecondaryCmpFunc) PrimaryLayer {
	var synced uint64
	return PrimaryLayer{
		synced: &synced,
		store:  NewPrimaryTree(cmp1),
		offset: uint64(util.RevOffset()),
		lock:   lockie.NewLockie(),
		cmp1:   cmp1,
		cmp2:   cmp2,
	}
}
NewPrimaryLayer initializes a new primary layer handle.
package route
import (
	"io"
	"github.com/zenhotels/btree-2d/lockie"
	"github.com/zenhotels/btree-2d/util"
)
type PrimaryCmpFunc func(key1, key2 uint64) int
type PrimaryLayer struct {
	store  *PrimaryTree
	offset uint64
	synced *uint64  
	lock   lockie.Lockie
	cmp1   PrimaryCmpFunc
	cmp2   SecondaryCmpFunc
}