The Neural Ring: Using Algebraic Geometry To Analyze Neural Codes