added stackSize function Fixes #2