Some code from my Data Structures class; kinda rough; up here for reference and accessibilty.