Implement "memmem"  function and fix minor style issues