added naive implementation of qgram distance, needs testing
added qgram distance to stringdistmatrix
shortcut when q>length(max(s,t)), workspace initialisation