Insert spin algorithm written -- no tests yet