Heisenberg: a program to the matrix calculation of the Heisenberg model in spin chains