Reshuffle function order to avoid forward declarations
anagram.c: style fixes, no functional changes