Cleaned up ST_Find

Compiles but did not check if it runs. Removed some of the state
functions that weren't used in ST_Find and combined two into the more
general Align function.