Added timeout option in normalizedbasis.m