added vector for corners
added corner detection, corner sorting function
proper alignment: alignment successful; max 10 deg tolerence