Detecting filamentary pattern in the cosmic web: a catalogue of filaments for the SDSS