Changed internal match function into fmatch for speeding up things. issue #28