Added support to marse memory patterns (Fixes #18)