Playing with branches
Configured header functions to use pointers instead of Mat type