A fast algorithm for the discrete sine transform implemented by the fast cosine transform