Added a bunch of patter matching functions to Memory class, and implmented offset finding in the main Brocator