Spintronics in Two-Dimensional Materials