Switch algorithm to algorithmic environment in figure!

Finally got it to work.  The secrets:
1. minipage environment
2. \TableSpaced to get the small text and single spacing
3. And throw in a couple \hrule to make it look good