{−1,0,1}-basis for the null space of a forest