Implementation of a Colorimetric Algorithm for Portable Blood Gas Analysis