Pātuhitia tēnei: Document analysis and recognition with wavelet and fractal theories