Calcium Dynamics as a Machine for Decoding Signals