Indoor positioning using similarity-based sequence and dead reckoning without training