Text this: An Algorithm to Compute the H-Bases for Ideals of Subalgebras