Text this: Random forest Algorithm for the Classification of Spectral Data of Astronomical Objects