finished updating the solutions to crc naive solution