Fixed bug in memContains() as pointed out by MARKZILLA