A agent based modelling framework for dynamic biological systems and applications to cancer cells, G protein coupled receptors and G proteins