An efficient algorithm to decide periodicity of $b$-recognisable sets using LSDF convention (Logical Methods in Computer Science, 2019)