Description 
Maximum length sequence assuming distinct
values = baseVal^powerVal1
[ms]=mseqSearch(powerVal,baseVal)
OUTPUT:
ms: generated maximum length sequence, of length
basisVal^powerVal1 such that all values occur
with equal frequency=basisVal except zero,
which occurs basisVal1 times
INPUT:
baseVal: any prime number up to 31
powerVal: an integer
NB: the algorithm is performing search in msequence
register space so the calculation time grows with
baseVal and powerVal
Tested on Matlab 7.9.0 (R2009b)
(C) Written by Giedrius T. Buracas, SNLB, Salk Institute
and Center for Functional MRI, UCSD
