Intermediate statistics as a consequence of deformed algebra