Building a Face Detection and Recognition Model From Scratch