i think this is the two stack idea - short runthrough in comments