LQG control problem for a class of hereditary systems: A method for computing its approximate solution