The LQG control problem for a class of hereditary systems, a method for computing its approximate solution