added memory library

running into memory management issues again. Will into better memory
management and function calls to reduce issues.

ended up changing storage for electrode pairs as a byte array (reducing
from 960 bytes to 240 bytes) and freeing up enough memory to
successfully run the code. Still need to check bioimpedance pathway.