fix scope issue with rmf
move gaussian code from isd2

to core/algebra

close #712