The hilbert function and the minimal free resolution of some gorenstein ideals of codimension 4