A programmable spin-free method for configuration interaction