Remove double function declarations in circuitpadding.c/test_circuitpadding.c
We can use the STATIC macro to avoid defining every function twice. We can also rearrange the circuitpadding.c functions so that we don't need to define them on top of the .c file.